home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / GWMALLOC.ZIP;1 / GWMALLOC.TAR / gw_malloc / compat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-08  |  2.4 KB  |  88 lines

  1. /*
  2.  * header file for compatibility functions.
  3.  *
  4.  * Copyright 1992 by Gray Watson and the Antaire Corporation
  5.  *
  6.  * This file is part of the malloc-debug package.
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library (see COPYING-LIB); if not, write to the
  20.  * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  *
  22.  * The author of the program may be contacted at gray.watson@antaire.com
  23.  *
  24.  * $Id: compat.h,v 1.7 1993/04/05 01:28:57 gray Exp $
  25.  */
  26.  
  27. #ifndef __COMPAT_H__
  28. #define __COMPAT_H__
  29.  
  30. #include "malloc.h"            /* for IMPORT ... */
  31.  
  32. /*<<<<<<<<<<  The below prototypes are auto-generated by fillproto */
  33.  
  34. /*
  35.  * copy LEN characters from FROM to TO
  36.  */
  37. #if __GNUC__ < 2
  38. IMPORT    char    *memcpy(char * to, const char * from, int len);
  39. #endif
  40.  
  41. /*
  42.  * compare LEN characters, return -1,0,1 if STR1 is <,==,> STR2
  43.  */
  44. #if __GNUC__ < 2
  45. IMPORT    int    memcmp(const char * str1, const char * str2, int len);
  46. #endif
  47.  
  48. /*
  49.  * set LEN characters in STR to character CH
  50.  */
  51. IMPORT    char    *memset(char * str, int ch, int len);
  52.  
  53. /*
  54.  * find CH in STR by searching backwards through the string
  55.  */
  56. IMPORT    char    *index(const char * str, int ch);
  57.  
  58. /*
  59.  * find CH in STR by searching backwards through the string
  60.  */
  61. IMPORT    char    *rindex(const char * str, int ch);
  62.  
  63. /*
  64.  * concatenate STR2 onto the end of STR1
  65.  */
  66. IMPORT    char    *strcat(char * str1, const char * str2);
  67.  
  68. /*
  69.  * returns -1,0,1 on whether STR1 is <,==,> STR2
  70.  */
  71. IMPORT    int    strcmp(const char * str1, const char * str2);
  72.  
  73. /*
  74.  * return the length in characters of STR
  75.  */
  76. IMPORT    int    strlen(const char * str);
  77.  
  78. /*
  79.  * get the next token from STR (pass in NULL on the 2nd, 3rd, etc. calls),
  80.  * tokens are a list of characters deliminated by a character from DELIM.
  81.  * writes null into STR to end token.
  82.  */
  83. IMPORT    char    *strtok(char * str, char * delim);
  84.  
  85. /*<<<<<<<<<<   This is end of the auto-generated output from fillproto. */
  86.  
  87. #endif /* ! __COMPAT_H__ */
  88.